import static org.junit.Assert.*;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;


public class JUnitEventTest {

	private static Event myEvent;
	
	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
		myEvent = new Event();
		myEvent.setTimeZone("Pacific/Honolulu");
		myEvent.setStart(2013,9,32,10,00);
		myEvent.setEnd(2015,10,32,15,00);
	}

	@Before
	public void setUp() throws Exception {
	}

	@Test
	public void testGetSummary() {
		myEvent.setClassification("Study for Exam");
		assertEquals("Study for Exam", myEvent.getClassification());
	}

	@Test
	public void testGetComment() {
		myEvent.setComment("Check traffic before leaving");
		assertEquals("Check traffic before leaving", myEvent.getComment());
	}

	@Test
	public void testGetLocation() {
		myEvent.setLocation("Hamilton Library");
		assertEquals("Hamilton Library", myEvent.getLocation());
	}

	@Test
	public void testGetResources() {
		myEvent.setResources("Pen, Paper, Laptop");
		assertEquals("Pen, Paper, Laptop", myEvent.getResources());
	}

	@Test
	public void testGuiStart() {
		System.out.println("Start: " + myEvent.guiStart());
		assertEquals(true,true);
	}

	@Test
	public void testGuiEnd() {
		System.out.println("End:   " + myEvent.guiEnd());
		assertEquals(true,true);
	}

	@Test
	public void testIcsStart() {
		System.out.println("Start ics: " + myEvent.icsStart());
		assertEquals(true,true);
	}
	
	@Test
	public void testIcsEnd() {
		System.out.println("End ics:   " + myEvent.icsEnd());
		assertEquals(true,true);
	}
	
	@After
	public void tearDown() throws Exception {
	}
	
	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}
}
